package com.bt.lms.ui.action.school_education.stu_basic.BasicMes;

import javafx.collections.ObservableList;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.scene.Node;
import javafx.scene.control.Alert;
import javafx.scene.layout.VBox;

/**
 * 学员信息管理里的删除头像功能事件
 */
public class BasicMesDeletePhoto implements EventHandler {

    private VBox six;
    public BasicMesDeletePhoto(VBox six) {
        this.six = six;
    }

    @Override
    public void handle(Event event) {
        Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
        alert.setContentText("您确定要删除头像嘛");
        alert.showAndWait();

        ObservableList<Node> children = this.six.getChildren();
        VBox vBox = new VBox();
        vBox.setPrefWidth(300);
        vBox.setPrefHeight(100);
        children.set(0,vBox);


    }
}
